package com.leancloud.circle.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import com.aries.ui.view.title.TitleBarView;
import com.leancloud.circle.R;

import tech.com.commoncore.base.BaseTitleActivity;
import tech.com.commoncore.utils.ToastUtil;


/**
 * @deprecated 提问界面
 */
public class QuestionActivity extends BaseTitleActivity implements View.OnClickListener {

    private EditText questionEt;

    @Override
    public void setTitleBar(TitleBarView titleBar) {

    }

    @Override
    public int getContentLayout() {
        return R.layout.activity_question;
    }

    @Override
    public void initView(Bundle savedInstanceState) {
        questionEt = findViewById(R.id.question_et);

        findViewById(R.id.question_cancel).setOnClickListener(this);
        findViewById(R.id.question_submit).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
    }

    private void handlerSubmitQuestion() {
        String issue = questionEt.getText().toString();
        if (issue == null || issue.isEmpty()) {
            ToastUtil.show("问题不能为空哦");
            return;
        }
    }
}
